import request from './request.js';
export function getdict(data) {
	return request({
		url: `/api/dict/data/type/${data}`,
		method: 'get',
	})
}
// 获取最新的关键词

export function gethot() {
	return request({
		url: `/api/hot/word/all`,
		method: 'POST',
	})
}
// user_pay_coin_amount
// 登录
export function login(data) {
	return request({
		url: '/app/login/wechat',
		method: 'POST',
		data
	})
}
// 获取个人信息
export function getUserinfo(data) {
	return request({
		url: '/api/users/index',
		method: 'POST',
		data
	})
}
// 修改个人信息
export function editUserinfo(data) {
	return request({
		url: '/api/users/update/info',
		method: 'POST',
		data
	})
}
// 获取消息列表
export function messageList(data) {
	return request({
		url: '/api/message/list',
		method: 'POST',
		data
	})
}
// 获取消息详情
export function messageInfo(data) {
	return request({
		url: `/api/message/info/${data}`,
		method: 'POST'
	})
}

// 获取公共配置
export function webconfig(data) {
	return request({
		url: '/api/communals/webconfig',
		method: 'POST',
		data
	})
}

// 获取公共配置
export function messageSeecount(data) {
	return request({
		url: '/api/message/not/see/count',
		method: 'POST',
		data
	})
}
// 支付
export function bondRecharge(data) {
	return request({
		url: '/api/users/bondRecharge',
		method: 'POST',
		data
	})
}
// 支付
export function coinRecharge(data) {
	return request({
		url: '/api/users/coinRecharge',
		method: 'POST',
		data
	})
}

// 验证码
export function getCodeImg() {
	return request({
		url: '/captchaImage',
		method: 'get',
	})
}
// 绑定手机号
export function phonedouyin(data) {
	return request({
		url: '/api/phone/bind/bind/phone/douyin',
		method: 'POST',
		data
	})
}
// 发送验证码
export function sendphone(data) {
	return request({
		url: '/api/sms/bind/phone/send',
		method: 'POST',
		data
	})
}
// 商人币明细
export function coinRecordList(data) {
	return request({
		url: '/api/users/coinRecord',
		method: 'POST',
		data
	})
}
export function bondRecordList(data) {
	return request({
		url: '/api/users/bondRecord',
		method: 'POST',
		data
	})
}
// 联系信息列表
export function accountList(data) {
	return request({
		url: '/api/users/accountList',
		method: 'POST',
		data
	})
}


// 删除联系信息列表
export function delAccountList(data) {
	return request({
		url: `/api/users/accountDel/${data}`,
		method: 'POST',
	})
}

// 添加信息
export function userSaccountAdd(data) {
	return request({
		url: '/api/users/accountAdd',
		method: 'POST',
		data
	})
}
// 修改信息
export function userSaccountEdit(data) {
	return request({
		url: '/api/users/accountEdit',
		method: 'POST',
		data
	})
}
// 角色服务器信息
export function zoneList(data) {
	return request({
		url: '/api/mini/zone/list',
		method: 'POST',
		data
	})
}

export function zoneallList(data) {
	return request({
		url: '/api/mini/zone/all/list',
		method: 'POST',
		data
	})
}
// 发布报价
export function quotationAdd(data) {
	return request({
		url: '/api/users/quotationAdd',
		method: 'POST',
		data
	})
}

// 报价列表
export function quotationList(data) {
	return request({
		url: '/api/users/quotationList',
		method: 'POST',
		data
	})
}
// 报价列表撤销
export function usersquotationCancelArraign(data) {
	return request({
		url: `/api/users/quotationCancelArraign/${data}`,
		method: 'POST'
	})
}
// 报价列表删除
export function removeQuotationList(data) {
	return request({
		url: `/api/users/v2/quotationDel`,
		method: 'POST',
		data
	})
}
// // 报价列表删除
// export function removeQuotationList(data) {
// 	return request({
// 		url: `/api/users/quotationDel/${data}`,
// 		method: 'POST'
// 	})
// }
// 报价列表下架
export function downQuotationList(data) {
	return request({
		url: `/api/users/quotationDown/${data}`,
		method: 'POST'
	})
}
// 报价列表发布
export function fbQuotationList(data) {
	return request({
		url: `/api/users/quotationArraign/${data}`,
		method: 'POST'
	})
}
// 报价详情
export function infoQuotationList(data) {
	return request({
		url: `/api/users/quotationDetail/${data}`,
		method: 'POST'
	})
}
export function quotationPrice(data) {
	return request({
		url: `/api/users/quotationPrice`,
		method: 'POST',
		data
	})
}

// 修改报价发布
export function quotationEdit(data) {
	return request({
		url: '/api/users/quotationEdit',
		method: 'POST',
		data
	})
}
export function quotationEditAll(data) {
	return request({
		url: '/api/users/quotationEditAll',
		method: 'POST',
		data
	})
}
// 重新发布
export function quotationUp(data) {
	return request({
		url: '/api/users/quotationUp',
		method: 'POST',
		data
	})
}

// 报价记录
export function getUpList(data) {
	return request({
		url: '/api/users/upList',
		method: 'POST',
		data
	})
}
// 报价详情
export function infoupDetail(data) {
	return request({
		url: `/api/users/upDetail/${data}`,
		method: 'POST'
	})
}


export function inputSearch(data) {
	return request({
		url: `/api/search/tips/name`,
		method: 'POST',
		data
	})
}

// 搜索列表
export function getSearchList(data) {
	return request({
		url: `/api/search/filter`,
		method: 'POST',
		data
	})
}
export function searchinfo(data) {
	return request({
		url: `/api/search/info/${data}`,
		method: 'POST'
	})
}
export function searchpay(data) {
	return request({
		url: `/api/search/pay`,
		method: 'POST',
		data
	})
}
export function updateNumber(data) {
	return request({
		url: `/api/search/update/number/${data}`,
		method: 'POST'
	})
}
// 申请退保
export function refundApply(data) {
	return request({
		url: `/api/refund/bond/apply`,
		method: 'POST',
		data
	})
}

// 退保记录
export function refundApplyList(data) {
	return request({
		url: `/api/refund/bond/list`,
		method: 'POST',
		data
	})
}
// 退保记录
export function queryCount(data) {
	return request({
		url: `/api/refund/bond/query/up/count`,
		method: 'GET',
		data
	})
}



// 下单
export function createOrder(data) {
	return request({
		url: `/api/safe/order/create`,
		method: 'POST',
		data
	})
}

// 订单记录
export function createOrderlist(data) {
	return request({
		url: `/api/safe/order/list`,
		method: 'POST',
		data
	})
}


// 订单记录
export function createOrderinfo(data) {
	return request({
		url: `/api/safe/order/info/${data}`,
		method: 'POST'
	})
}
export function cancelOrder(data) {
	return request({
		url: `/api/safe/order/cancel/${data}`,
		method: 'POST'
	})
}
export function payPrice(data) {
	return request({
		url: `/api/safe/order/pay/${data}`,
		method: 'POST'
	})
}
export function quotationdetail(data) {
	return request({
		url: `/api/quotation/info/${data}`,
		method: 'POST'
	})
}

export function setAddress(data) {
	return request({
		url: `/api/safe/order/update/game`,
		method: 'POST',
		data
	})
}
export function setpayment(data) {
	return request({
		url: `/api/safe/order/update/payment`,
		method: 'POST',
		data
	})
}

export function setupload(data) {
	return request({
		url: `/api/safe/order/upload/file`,
		method: 'POST',
		data
	})
}


export function yesOrder(data) {
	return request({
		url: `/api/safe/order/finish/${data}`,
		method: 'POST'
	})
}

export function checkOrder(data) {
	return request({
		url: `/api/safe/order/before/create`,
		method: 'POST',
		data
	})
}

export function getEidToken(data) {
	return request({
		url: `/tencent/face/getEidToken`,
		method: 'POST',
		data
	})
}
export function getorder(data) {
	return request({
		url: `/api/safe/order/self/ing`,
		method: 'POST',
		data
	})
}
export function getInfo(data) {
	return request({
		url: `/tencent/face/check/eid/result`,
		method: 'POST',
		data
	})
}

export function messageAll(data) {
	return request({
		url: `/api/message/read/all`,
		method: 'POST',
		data
	})
}

// 出价
export function quotationBuyer(data) {
	return request({
		url: `/api/quotation/buyer`,
		method: 'POST',
		data
	})
}
// 出价列表
export function quotationbuyerList(data) {
	return request({
		url: `/api/quotation/buyer/select/list/page`,
		method: 'POST',
		data
	})
}
// 我的出价列表
export function usersbuyerList(data) {
	return request({
		url: `/api/users/buyer/list`,
		method: 'POST',
		data
	})
}
// 我的出价列表详情
export function usersbuyerInfo(data) {
	return request({
		url: `/api/users/buyer/info/${data}`,
		method: 'POST'
	})
}
// 删除我的出价：
export function usersbuyerRemove(data) {
	return request({
		url: `/api/users/buyer/remove/${data}`,
		method: 'POST'
	})
}
// 撤销出价：
export function usersbuyerCancel(data) {
	return request({
		url: `/api/users/buyer/cancel/${data}`,
		method: 'POST'
	})
}
// 出价拒绝：
export function usersbuyerReject(data) {
	return request({
		url: `/api/quotation/buyer/reject/${data}`,
		method: 'POST'
	})
}
// 数字
export function usersTips() {
	return request({
		url: `/api/users/query/tips`,
		method: 'POST'
	})
}
// 点击卖出
export function createBuyer(data) {
	return request({
		url: `/api/safe/order/create/buyer`,
		method: 'POST',
		data:data
	})
}
//检测有没有正在交易中
export function beforeCreateBuyer(data) {
	return request({
		url: `/api/safe/order/before/create/buyer`,
		method: 'POST',
		data:data
	})
}

// 举报
export function reportAdd(data) {
	return request({
		url: `/api/report/add`,
		method: 'POST',
		data:data
	})
}
// 查看出价
export function quotationBuyerCoin(data) {
	return request({
		url: `/api/quotation/buyer/pay/coin`,
		method: 'POST',
		data:data
	})
}
export function searchBuyerInfo(data) {
	return request({
		url: `/api/search/buyer/info/${data}`,
		method: 'POST',
	})
}
